package com.Design.Chain.now;

import com.Design.Chain.Request;

/**
 * @Author Lc
 * @Date 2023/9/29
 * @PackageName: com.Design.Chain.now
 * @ClassName: Manger
 * @Description:
 */

public abstract class Manager {
    private String name;
    private String role;
    private Manager manager;

    public Manager(String name, String role) {
        this.name = name;
        this.role = role;
    }

    public abstract void getResult(Request request);

    public abstract void next(Manager manager);

    public abstract void toNext(Request request);

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Manager getManager() {
        return manager;
    }

    public void setManager(Manager manager) {
        this.manager = manager;
    }
}
